/*
        Updater For Java Programs 
        
    Copyright (C) 2010, Arttu Viljakainen 
    Published under GNU General Public License V3 
    (see http://www.gnu.org/licenses/licenses.html)
    
    This file is part of Updater For Java Programs.

    Updater For Java Programs is free software: 
    you can redistribute it and/or modify it under the terms of the GNU General 
    Public License as published by the Free Software Foundation, 
    either version 3 of the License, or (at your option) any later version.

    Updater For Java Programs is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 
    Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Updater for Java programs. If not, see         
    <http://www.gnu.org/licenses/>.
 */
package updater.control;

import updater.gui.Updater;



public class UpdateController {

    private Updater updaterView;
    
    public UpdateController(Updater updaterView) {
        
        this.updaterView = updaterView;
        
    }
    
    public void startUpdate() {
        
        updaterView.updateFile();
        
    }

    public void cancelUpdate() {
        
        updaterView.cancelUpdate();
        
    }

    public void finishUpdate() {

        updaterView.finishUpdate();
        
    }

    public void exitWithoutUpdating() {
        updaterView.exit();
    }
}
